package net.sk.china.city.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 捐赠列表对象 ar_donate
 * 
 * @author gxf
 * @date 2024-04-07
 */
@Data
public class ArDonate
{
    private static final long serialVersionUID = 1L;

    /** 捐赠id */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 捐赠编号 */
    private String donationNumber;

    /** 捐赠首图 */
    private String indexImg;

    /** 总价 */
    private BigDecimal totalPrice;

    /** 捐赠来源 */
    private String sourceId;

    /** 所属地区 */
    private String platformId;


    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDate createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDate updateTime;

    /** 备注 */
    private String remark;

    /** 删除标志（0存在 2删除）*/
    private String delFlag;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("donationNumber", getDonationNumber())
            .append("indexImg", getIndexImg())
            .append("platformId", getPlatformId())
            .append("sourceId",getSourceId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
